import Vue from 'vue'
import App from './App'
import './uni.promisify.adaptor'
import uView from "@/uni_modules/uview-ui";

Vue.use(uView);

Vue.prototype.islogin = function () {
  var isLogin = uni.getStorageSync('login');
  if (!isLogin) {
    uni.navigateTo({
      url: '../login/index'
    });
    return false
  } else {
    return true
  }
}

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
  ...App
})
app.$mount()
